<?php

namespace App\Store\Validate\Alisms;

use App\Common\Validate\BaseValidate;

/**
 * 验证器
 */
class AliSetting extends BaseValidate
{
    //验证规则
    protected $rule = [];
    //自定义验证信息
    protected $message = [];

    public function __construct($doaction = 'alisms')
    {
        if ($doaction == 'alisms') {
            $this->rule = [
                'access_key_id'=>'required',
                'access_key_secret'=>'required',
            ];
            $this->message = [
                'access_key_id.required' => 'appkeyid不能为空',
                'access_key_secret.required' => 'appkeysecret不能为空',
            ];
        }
    }
}
